from rest_framework import serializers

from apps.wool import models


class w1Ser(serializers.ModelSerializer):
    class Meta:
        model = models.w1
        fields = '__all__'


class WoolSer(serializers.ModelSerializer):
    did=w1Ser(read_only=True)
    did_id=serializers.IntegerField(write_only=True)
    class Meta:
        model = models.wool
        fields = '__all__'

class userSer(serializers.ModelSerializer):
      class Meta:
            models=models.User
            fields='__all__'